
class BasicController {
    RequestSuccessMsg(res,data){
        let message ={
            code: 0,
            message: 'success'
        }
        if(data){
            message.data = data;
        }
        res.json(message);
    }
    isEmptyParameter(data){
        if(!data){
            return false;
        }
        return true;
    }
}

module.exports = BasicController;